package com.situ.feemanagement.controller;

import com.situ.feemanagement.pojo.vo.EarningsVO;
import com.situ.feemanagement.service.IEchartsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/echarts")
public class EchartsController {

    @Autowired
    private IEchartsService echartsService;

    @RequestMapping("/selectAll")
    public List<EarningsVO> selectAll() {
        return echartsService.selectAll();
    }
}
